package cn.com.css.taxInspection.gt3.service.impl;

import org.springframework.stereotype.Service;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import cn.com.css.taxInspection.gt3.mapper.JcAjztTjZstsMapper;
import cn.com.css.taxInspection.gt3.entity.JcAjztTjZjjcEntity;
import cn.com.css.taxInspection.gt3.entity.JcAjztTjZstsEntity;
import cn.com.css.taxInspection.gt3.service.JcAjztTjZstsService;


@Service("jcAjztTjZstsService")
public class JcAjztTjZstsServiceImpl extends ServiceImpl<JcAjztTjZstsMapper, JcAjztTjZstsEntity> implements JcAjztTjZstsService {

	@Override
	@DS("oracle")
	public IPage<JcAjztTjZstsEntity> infoPage(JcAjztTjZstsEntity jcAjztTjZstsEntity) {
		Page page = new Page(jcAjztTjZstsEntity.getPage(), jcAjztTjZstsEntity.getLimit());
		LambdaQueryWrapper<JcAjztTjZstsEntity> queryWrapper = Wrappers.lambdaQuery();
		queryWrapper.eq(JcAjztTjZstsEntity::getJcry, jcAjztTjZstsEntity.getJcry());
		queryWrapper.eq(JcAjztTjZstsEntity::getNd, jcAjztTjZstsEntity.getNd());
		IPage<JcAjztTjZstsEntity> iPage = this.page(page, queryWrapper);
		
		return iPage;
	}


}